package com.gtfrank.web.servlet.day1;

import javax.servlet.GenericServlet;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.IOException;

/**
 * @ProjectName: sudacoursetrainging
 * @ClassName: SecondServlet
 * @PackageName:com.gtfrank.web.servlet.day1
 * @Description: 继承实现
 * @Author: frank
 * @Date: 2021/4/23 13:44
 * @Version v1.0
 */
public class SecondServlet extends GenericServlet {
    @Override
    public void destroy() {
        System.out.println("SecondServlet.destroy()");

    }

    @Override
    public void init() throws ServletException {
        System.out.println("SecondServlet.init");
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("service");
    }
}
